$(document).ready(function(){
	$('.bttn-txt').livequery('click',function(){
		s.linkTrackVars = 'eVar59,prop61,prop62,prop63';
		$this=$(this);
		if($this.parent().attr('id').contains('genrePriceAlert')){var stitle=$this.parents('#genrePriceAlert').parent().attr('class');}
		else{var stitle=$this.parents('#signUpAlertLink').parent().attr('class');}
		s.eVar59 = contentPagetype+' page : '+stitle;
		s.prop61 = contentPagetype+' page : '+stitle+' : '+$this.text();
		s.prop62 = contentPagetype+' page : '+stitle;
		s.prop63 = contentPagetype+' page ';
		s.tl(true,'o',s.prop63);
	});
	$('#genrePriceAlertList>a').livequery('click',function(){
		s.linkTrackVars = 'eVar59,prop61,prop62,prop63';
		$this=$(this);
		s.eVar59 = contentPagetype+' page : '+$this.parents('#genrePriceAlert').parent().attr('class');
		s.prop61 = contentPagetype+' page : '+$this.parents('#genrePriceAlert').parent().attr('class')+' : '+$this.text();
		s.prop62 = contentPagetype+' page : '+$this.parents('#genrePriceAlert').parent().attr('class');
		s.prop63 = contentPagetype+' page ';
		s.tl(true,'o',s.prop63);
	});
	$('.genreCategory li a').livequery('click',function(){
		s.linkTrackVars = 'eVar59,prop61,prop62,prop63';
		$this=$(this);
		var ul = $(this).parents('ul');
		var index = ul.children().index($this.parent())+1;
		s.eVar59 = contentPagetype+' page  : '+$this.parents('ul').parent().attr('class').split(' ')[0];
		s.prop61 = contentPagetype+' page  : '+$this.parents('ul').parent().attr('class').split(' ')[0]+' : '+$this.text()+' : Link-> '+index+' clicked';
		s.prop62 = contentPagetype+' page  : '+$this.parents('ul').parent().attr('class').split(' ')[0];
		s.prop63 = contentPagetype+' page ';
		s.tl(true,'o',s.prop63);
	});
	$('#eventListOverlay li a').livequery('click',function(){
		s.linkTrackVars = 'eVar59,prop61,prop62,prop63';
		$this=$(this);
		var ul = $(this).parents('ul');
		var index = ul.children().index($this.parent())+1;
		s.eVar59 = contentPagetype+' page  : '+ul.parent().attr('class');
		s.prop61 = contentPagetype+' page  : '+ul.parent().attr('class')+' : '+ul.attr('class')+' : '+$this.text().replace(/(^[\s]+|[\s]+$)/g,'')+' : Link-> '+index+' clicked';
		s.prop62 = contentPagetype+' page  : '+ul.parent().attr('class');
		s.prop63 = contentPagetype+' page ';
		s.tl(true,'o',s.prop63);
	});
	$('.filterCategory input[type="radio"]').livequery('click',function(){
		s.linkTrackVars = 'eVar59,prop61,prop62,prop63';
		$this=$(this);
		s.eVar59 = contentPagetype+' page  : '+$this.parents('.filterElements').siblings('#leftNavFilterPaneWrap').text().replace(/(^[\s]+|[\s]+$)/g,'')+' category ';
		s.prop61 = contentPagetype+' page  : '+$this.parents('.filterElements').siblings('#leftNavFilterPaneWrap').text().replace(/(^[\s]+|[\s]+$)/g,'')+' category : '+$this.next('label').text().replace(/(^[\s]+|[\s]+$)/g,'')+' clicked';
		s.prop62 = contentPagetype+' page  : '+$this.parents('.filterElements').siblings('#leftNavFilterPaneWrap').text().replace(/(^[\s]+|[\s]+$)/g,'')+' category ';
		s.prop63 = contentPagetype+' page ';
		s.tl(true,'o',s.prop63);console.log(s.prop61+"\n"+s.prop62+"\n"+s.prop63+"\n");
	});
	$('#datedropown').livequery('click',function(){
		s.linkTrackVars = 'eVar59,prop61,prop62,prop63';
		$this=$(this);
		s.eVar59 = contentPagetype+' page  : when category';
		s.prop61 = contentPagetype+' page  : when category : '+$this.text().replace(/(^[\s]+|[\s]+$)/g,'');
		s.prop62 = contentPagetype+' page  : when category';
		s.prop63 = contentPagetype+' page ';
		s.tl(true,'o',s.prop63);	
	});
	$('#dateFilters li a').livequery('click',function(){
		s.linkTrackVars = 'eVar59,prop61,prop62,prop63';
		$this=$(this);
		s.eVar59 = contentPagetype+' page  : when category';
		s.prop61 = contentPagetype+' page  : when category : popup : '+$this.text().replace(/(^[\s]+|[\s]+$)/g,'');
		s.prop62 = contentPagetype+' page  : when category';
		s.prop63 = contentPagetype+' page ';
		s.tl(true,'o',s.prop63);	
	});
	$('#locationFiltersContainer li a').livequery('click',function(){
		s.linkTrackVars = 'eVar59,prop61,prop62,prop63';
		$this=$(this);
		var ul = $(this).parents('ul');
		var index = ul.children().index($this.parent())+1;
		s.eVar59 = contentPagetype+' page  : '+$this.parents('.filterLocation').siblings('.h5replacement').text()+' category';
		s.prop61 = contentPagetype+' page  : '+$this.parents('.filterLocation').siblings('.h5replacement').text()+' category : '+$this.attr("title")+' : Link-> '+index+' clicked';
		s.prop62 = contentPagetype+' page  : '+$this.parents('.filterLocation').siblings('.h5replacement').text()+' category ';
		s.prop63 = contentPagetype+' page ';
		s.tl(true,'o',s.prop63);
	});
	$('#eventsFiltersContainer li a').livequery('click',function(){
		s.linkTrackVars = 'eVar59,prop61,prop62,prop63';
		$this=$(this);
		var ul = $(this).parents('ul');
		var index = ul.children().index($this.parent())+1;
		s.eVar59 = contentPagetype+' page  : '+$this.parents('.filterEvent').siblings('.h5replacement').text()+' category';
		s.prop61 = contentPagetype+' page  : '+$this.parents('.filterEvent').siblings('.h5replacement').text()+' category : '+$this.attr("title")+' : Link-> '+index+' clicked';
		s.prop62 = contentPagetype+' page  : '+$this.parents('.filterEvent').siblings('.h5replacement').text()+' category ';
		s.prop63 = contentPagetype+' page ';
		s.tl(true,'o',s.prop63);
	});
	$('#tabLinks li a').livequery('click',function(){
		s.linkTrackVars = 'eVar59,prop61,prop62,prop63';
		$this=$(this);
		s.eVar59 = contentPagetype+' page  : '+$this.closest('div').attr('id');
		s.prop61 = contentPagetype+' page  : '+$this.closest('div').attr('id')+' : '+$this.text().replace(/(^[\s]+|[\s]+$)/g,'');
		s.prop62 = contentPagetype+' page  : '+$this.closest('div').attr('id');
		s.prop63 = contentPagetype+' page ';
		s.tl(true,'o',s.prop63);
	});
	$('#Date,#Event,#Location').livequery('click',function(){
		s.linkTrackVars = 'eVar59,prop61,prop62,prop63';
		$this=$(this);
		s.eVar59 = contentPagetype+' page  : eventTable header';
		s.prop61 = contentPagetype+' page  : eventTable header : '+$this.text().replace(/(^[\s]+|[\s]+$)/g,'')+' sort clicked';
		s.prop62 = contentPagetype+' page  : eventTable header';
		s.prop63 = contentPagetype+' page ';
		s.tl(true,'o',s.prop63);
	});
	$('.eventName a,.eventLocation a,.eventSell a,.eventTickets a').livequery('click',function(){
		s.linkTrackVars = 'eVar59,prop61,prop62,prop63';
		$this=$(this);
		if($this.closest('td').attr('class').contains('eventLocation')){
		   var position = this.parentNode.parentNode.parentNode.rowIndex;
		}
		else{
			var position = this.parentNode.parentNode.rowIndex;
		}
		if($this.attr('title').length>0){var eTitle=$this.attr('title');}else{var eTitle=$this.text();}
		if($this.children().attr('class').contains('seetickets')){eTitle+=' button';}
		s.eVar59 = contentPagetype+' page  : eventTable : '+eTitle+' clicked';
		s.prop61 = contentPagetype+' page  : eventTable : '+eTitle+' clicked : Position -> '+position;
		s.prop62 = contentPagetype+' page  : eventTable : '+eTitle+' clicked';
		s.prop63 = contentPagetype+' page ';
		s.tl(true,'o',s.prop63);
	});
	$('.paginr .paginate_button').livequery('click',function(){
		s.linkTrackVars = 'eVar59,prop61,prop62,prop63';
		$this=$(this);
		s.eVar59 = contentPagetype+' page  : eventTable : Pagination';
		s.prop61 = contentPagetype+' page  : eventTable : Pagination : '+$this.text()+' rows link clicked';
		s.prop62 = contentPagetype+' page  : eventTable : Pagination';
		s.prop63 = contentPagetype+' page ';
		s.tl(true,'o',s.prop63);
	});
	$('.button_first,.button_previous,.button_next,.button_last').livequery('click',function(){
		s.linkTrackVars = 'eVar59,prop61,prop62,prop63';
		$this=$(this);
		s.eVar59 = contentPagetype+' page  : eventTable : Pagination';
		s.prop61 = contentPagetype+' page  : eventTable : Pagination : '+$this.attr('class').split(' ')[0]+' button clicked';
		s.prop62 = contentPagetype+' page  : eventTable : Pagination';
		s.prop63 = contentPagetype+' page ';
		s.tl(true,'o',s.prop63);
	});
	$('.paginate_pageNrs .paginate_button').livequery('click',function(){
		s.linkTrackVars = 'eVar59,prop61,prop62,prop63';
		$this=$(this);
		s.eVar59 = contentPagetype+' page  : eventTable : Pagination';
		s.prop61 = contentPagetype+' page  : eventTable : Pagination : '+$this.text()+' page clicked';
		s.prop62 = contentPagetype+' page  : eventTable : Pagination';
		s.prop63 = contentPagetype+' page ';
		s.tl(true,'o',s.prop63);
	});
	$('.go button').livequery('click',function(){
		s.linkTrackVars = 'eVar59,prop61,prop62,prop63';
		$this=$(this);
		s.eVar59 = contentPagetype+' page  : eventTable : Pagination';
		s.prop61 = contentPagetype+' page  : eventTable : Pagination : toPage : '+this.parentNode.children[0].value+' : '+$this.text()+' button clicked';
		s.prop62 = contentPagetype+' page  : eventTable : Pagination';
		s.prop63 = contentPagetype+' page ';
		s.tl(true,'o',s.prop63);
	});
});